package cn.kzgg.user.mapper;

import cn.kzgg.user.domain.User;
import cn.kzgg.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author KZGG
 * @since 2022-06-16
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据电话查询是否被注册过
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 根据LogininfoId找对应的寻主用户
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
